package com.lune.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lune.job.pojo.Company;
import com.lune.job.pojo.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Caiyilin
 * @since 2022-03-06
 */
public interface CompanyMapper extends BaseMapper<Company> {

    /**
     * 查询
     * @param param
     * @return
     */
    List<Company> query(Company param);

    /**
     * updateSelective
     * @param company
     * @return
     */
    int updateSelective(Company company);

    /**
     * 分页查询单位
     * @param page
     * @param company
     * @return
     */
    IPage<Company> getAllCompanyByPage(Page<Company> page, Company company);

    /**
     * 条件查询单位
     * @param company
     * @return
     */
    List<Company> queryByCon(Company company);
}
